<?php

use Illuminate\Http\Request;
//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});

//需要使用dingo注册api路由
$api=app('Dingo\Api\Routing\Router'); //从容器当中解析dingo的路由对象
$api->version('v1',function($api){
    $api->get('/index','App\Home\Controllers\BaseController@index');
});